//
//  UILabel+HgLabel.h
//  test
//
//  Created by 朱圳 on 2017/12/29.
//  Copyright © 2017年 朱圳. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface UILabel (HgLabel)
//行间距
-(NSAttributedString *)getAttributedStringWithString:(NSString *)string lineSpace:(CGFloat)lineSpace;
//高度自适应
- (CGFloat)getHeightByWidth:(CGFloat)width title:(NSString *)title font:(UIFont*)font;
//宽度自适应
- (CGFloat)getWidthWithTitle:(NSString *)title font:(UIFont *)font;

@end
